<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* $this yii\web\View; */
/* $model backend\modules\admin\models\Role */
?>
<div class="card">
    <div class="row">

        <div class="content">

    <div class="col-xs-12">

        <!-- PAGE CONTENT BEGINS -->
        <?php
        $label_class=['class'=>'col-sm-3 control-label no-padding-right'];
        $form = ActiveForm::begin(
            [
                'fieldConfig'=>[
                    'options' => ['enctype' => 'multipart/form-data', 'class' => 'form-horizontal'],
                    'template'=> "<div class=\"form-group\">{label}\n<div class=\"col-sm-5\">{input}</div><div class=\"col-sm-3\">{error}</div></div>",
                    'labelOptions' =>['class' => $label_class],
                ],
                'method' => 'post',
            ]
        );
        ?>
        <?= $form->field($model, 'rolename')->textInput(['maxlength' => 20])?>
        <?= $form->field($model, 'listorder')->textInput(['maxlength' => 10,'style'=>'width:60px;'])?>
        <?= $form->field($model, 'status')->dropDownList([0=>'启用',2=>'关闭'],['style'=>'width:150px;'])?>
        <?= $form->field($model, 'description')->textarea(['rows'=>3])?>

        <div class="clearfix">
            <div class="col-md-offset-3 col-md-9">
                <?= Html::submitButton('提交', ['class'=>'btn btn-info','name' =>'submit-button']) ?>
                <?= Html::resetButton('重置', ['class'=>'btn btn-primary','name' =>'reset-button']) ?>
            </div>
        </div>
        <?php ActiveForm::end(); ?>
        <div class="space-4"></div>
        
        </div><!-- /.col -->

         </div><!-- /.content -->
       
    </div><!-- /.row -->
</div><!-- /.card -->
